package cn.bs.busuo.front.content.dao.persist.mapper;

import cn.bs.busuo.front.content.pojo.entity.ContentHotelArticleDetail;
import cn.bs.busuo.front.content.pojo.entity.ContentSightArticleDetail;
import cn.bs.busuo.front.content.pojo.vo.ContentSightArticleDetailByIdVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

/**
 * @author: Feng
 * @since: 2023/12/7
 */
@Repository
public interface UserSightArticleDetailMapper extends BaseMapper<ContentSightArticleDetail> {
    //删除景点文章(设置为不显示)
    int updateBySightId(Long id);
    //查看酒店文章详情
    ContentSightArticleDetailByIdVO selectSightArticleDetailById(Long id);
    //增加点击量
    void increaseClickCount(Long id);
    //查看景点文章实体类
    ContentHotelArticleDetail selectHotelArticleDetail(Long id);
    //修改景点文章详情
    int updateHotelArticleDetail(String detail, Long id);


}
